package com.atguigu.loan;

import lombok.Data;

/**
 * 状态枚举类
 *
 * @author melo
 */
public enum StateEnum {

    // 订单生成
    GENERATE(1, "GENERATE"),

    // 已审核
    REVIEWED(2, "REVIEWED"),

    // 已发布
    PUBLISHED(3, "PUBLISHED"),

    // 待付款
    NOT_PAY(4, "NOT_PAY"),

    // 已付款
    PAID(5, "PAID"),

    // 已完结
    FEED_BACKED(6, "FEED_BACKED");

    private final int key;

    private final String value;

    StateEnum(int key, String value) {
        this.key = key;
        this.value = value;
    }

    public int getKey() {
        return key;
    }

    public String getValue() {
        return value;
    }
}
